<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Uploadify Example Script</title>

<link href="css/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="scripts/swfobject.js"></script>
<script type="text/javascript" src="scripts/jquery.uploadify.v2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	 $("#uploadify").uploadify({  
         'uploader' : 'scripts/uploadify.swf',  
         'script' : 'up1',//后台处理的请求  
         'cancelImg' : 'cancel.png',  
         'folder' : 'uploads',//您想将文件保存到的路径  
         'queueID' : 'fileQueue',//与下面的id对应  
         'queueSizeLimit' : 5,  
         'fileDesc' : 'rar文件或zip文件',  
         'fileExt' : '*.rar;*.zip;*.jpg', //控制可上传文件的扩展名，启用本项时需同时声明fileDesc  
         'auto' : false,  
         'multi' : true,  
         'simUploadLimit' : 2,  
         'buttonText' : 'BROWSE'  
     });  
});
</script>
</head>

<body>
<h1>Jquery  uploadify 上传文件Demo</h1>
<div id="fileQueue" style="width: 500px;height: 50px;"></div>
 <input type="file" name="uploadify" id="uploadify" />
 <input type="button" onclick="$('#uploadify').uploadifyUpload()" value="上传"/>
<p><a href="javascript:jQuery('#uploadify').uploadifyClearQueue()">Cancel All Uploads</a></p>
</body>
</html>
